package com.reef.entity;

import java.math.BigDecimal;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
@Data
@AllArgsConstructor
@NoArgsConstructor

@Entity
@Table(name = "lend_book")//设置《借阅表》表名
@JsonIgnoreProperties(value = {"hibernateLazyInitializer","handler"})//懒加载
public class Lend_book {
@Id //设置主键
@GeneratedValue(strategy = GenerationType.IDENTITY)//主键生成的机制	
  private int sernum;//借书编号
  private int bookid;//图书编号
  private String bookname;
  private int readerid;//读者编号
  private String readername;
  private String lenddate;//借出时间
  private String backdate;//归还时间
  private String isoverdue;//是否逾期
  private BigDecimal overduefees;//逾期费用
  private String realdate;//实时归还图书
  private int isback;//是否归还0否1是
  private int res3;
  private String res6;

}
